Skip to content

Conversation

@IMinchev64
Copy link
Contributor

No description provided.

@IMinchev64 IMinchev64 marked this pull request as ready for review October 19, 2025 17:36
@ChronosSF ChronosSF self-assigned this Oct 23, 2025
@ChronosSF ChronosSF added the status: in-test PR ready for testing label Oct 23, 2025
@ChronosSF ChronosSF requested a review from Copilot October 23, 2025 11:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds sample implementations demonstrating the column pinning feature with both left and right pinning capabilities across three grid types: Grid, Tree Grid, and Hierarchical Grid.

  • Implements column pinning controls (Pin Left, Pin Right, Unpin) via toolbar buttons
  • Configures default pinning positions for selected columns
  • Creates complete sample applications with data sources and styling

Reviewed Changes

Copilot reviewed 26 out of 30 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
samples/grids/tree-grid/column-pinning-both-sides/src/index.tsx Tree grid implementation with employee data and dual-side pinning
samples/grids/hierarchical-grid/column-pinning-both-sides/src/index.tsx Hierarchical grid implementation with customer/order data and nested pinning config
samples/grids/grid/column-pinning-both-sides/src/index.tsx Basic grid implementation with customer data and dynamic column configuration
samples/grids/tree-grid/column-pinning-both-sides/src/EmployeesFlatDetails.ts Employee data model and sample dataset
samples/grids/grid/column-pinning-both-sides/src/CustomersData.ts Customer data model and sample dataset
samples/grids/*/column-pinning-both-sides/package.json Package dependencies for all three sample projects
samples/grids/*/column-pinning-both-sides/tsconfig.json TypeScript configuration for all three samples
samples/grids/*/column-pinning-both-sides/ReadMe.md Documentation for running the samples

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

field="Title"
dataType="string"
width="250px"
pinned={true}
Copy link

Copilot AI Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'Title' column is missing an explicit pinningPosition property. Without it, the column will use the default pinning position from pinningConfig (ColumnPinningPosition.End), but this is inconsistent with the 'Name' column above it which explicitly sets pinningPosition={ColumnPinningPosition.Start}. For clarity and to avoid unexpected behavior, specify the intended pinning position explicitly.

Suggested change
pinned={true}
pinned={true}
pinningPosition={ColumnPinningPosition.End}

Copilot uses AI. Check for mistakes.
<IgrColumn
field="ContactName"
header="Contact Name"
pinned={true}
Copy link

Copilot AI Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'ContactName' column is missing an explicit pinningPosition property. Without it, the column will use the default pinning position from pinningConfig (ColumnPinningPosition.End), but this is inconsistent with the 'Company' column above it which explicitly sets pinningPosition={ColumnPinningPosition.Start}. Specify the intended pinning position explicitly.

Suggested change
pinned={true}
pinned={true}
pinningPosition={ColumnPinningPosition.Start}

Copilot uses AI. Check for mistakes.
Comment on lines +135 to +140
></IgrColumn>
<IgrColumn
field="ShippedVia"
header="Shipped Via"
dataType="string"
resizable={true}
Copy link

Copilot AI Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'ShipName' and 'ShippedVia' columns are both pinned but lack explicit pinningPosition properties. Without explicit positions, they will use the default from pinningConfig (ColumnPinningPosition.End), which may not be the intended behavior since the first column 'OrderDate' is explicitly pinned to Start. Specify pinning positions for consistency.

Copilot uses AI. Check for mistakes.
@ChronosSF ChronosSF added status: verified The PR is tested and ready for a merge and removed status: in-test PR ready for testing labels Oct 23, 2025
@ChronosSF ChronosSF merged commit 5a774a3 into vnext Oct 23, 2025
5 checks passed
@ChronosSF ChronosSF deleted the iminchev/pinning-both-sides branch October 23, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: verified The PR is tested and ready for a merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants